package com.feri.project.controller;

import com.feri.project.common.R;
import com.feri.project.entity.Order;
import com.feri.project.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author ：L1ZH
 * @create ：2023-03-05
 */
@RestController
@RequestMapping("/api/order/")
public class OrderController {
    @Autowired
    private OrderService orderService;

    @GetMapping("query.do")
    public R query(){
        List<Order> orders = orderService.query1();

        System.out.println("11111111111");
        orders.forEach(item-> System.out.println(orders));
        return R.ok(orders);
    }





}
